﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BookStores.IDomain;
using Dapper.Database;

namespace BookStores.Domain
{
    public class BookLanguage : IBookLanguage
    {
        BookStores.Contracts.IBookLanguageRepository m_IBookLanguageRepository;
        public BookLanguage(BookStores.Contracts.IBookLanguageRepository bookLanguageRepository)
        {
            m_IBookLanguageRepository = bookLanguageRepository;
        }
        /// <summary>
        /// 获取语言列表
        /// </summary>
        /// <returns></returns>
        public async Task<List<BookStores.Entity.BookLanguage>> GetAllList()
        {
            return await m_IBookLanguageRepository.Queryable().ToListAsync();
        }
    }
}
